﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.U2D;
using UnityEngine.UI;

public class Main : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        LuaMgr.GetInstance().Init();
        LuaMgr.GetInstance().DoLuaFile("Main");
        
    }
    // Update is called once per frame
    void Update()
    {

    }

    IEnumerator 慢开始()
    {
        yield return null;
        var canvas=GameObject.FindWithTag("MainCanvas");
        var btns=canvas.transform.GetComponentsInChildren<Button>();
        foreach(var btn in btns)
        {
            Debug.Log(btn.name+"__"+btn);
        }
    }
}
